package top.zy.service.zymallgoodsservice.goods.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.zy.service.zymallgoodsinterface.entity.Sku;

import java.util.List;

@Mapper
public interface SkuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Sku record);

    int insertSelective(Sku record);

    Sku selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Sku record);

    int updateByPrimaryKey(Sku record);

    int deleteBySpuId(@Param("spuId") Long spuId);

    List<Sku> selectSkuBySpuId(@Param("spuId") Long spuId);

}